package com.xrit.sunnyday.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.xrit.sunnyday.dao.MenuDao;
import com.xrit.sunnyday.pojo.Menu;
import com.xrit.sunnyday.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 类名称: MenuServiceImpl
 * 类描述:TODO
 * 创建人: czb
 * 创建时间:2022/7/13 下午 03:37
 * Version 1.0.0
 */
@Service(interfaceClass = MenuService.class)
@Transactional
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuDao menuDao;

    @Override
    public List<Menu> getMenu(Integer roleId) {
        return menuDao.getMenu(roleId);
    }
}
